package keys

import (
	"gitee.com/shoyer/service/rdb"
)

const (
	Online                      = "f_online_uid_%d"
	Session                     = "f_session_sid_%s"
	OnlineServers               = "f_online_servers"
	MaintenanceEndAt            = "f_maintenance_end_at"
	MaintenanceStartAt          = "f_maintenance_start_at"
	SessionByUID                = "f_session_by_uid"
	UserLocatedServerBySid      = "f_user_located_server_by_sid"
	UserLocatedServerByNickname = "f_user_located_server_by_nickname"
)

func init() {
	rdb.RegisterKey(Online)
	rdb.RegisterKey(Session)
	rdb.RegisterKey(OnlineServers)
	rdb.RegisterKey(MaintenanceEndAt)
	rdb.RegisterKey(MaintenanceStartAt)
	rdb.RegisterKey(SessionByUID)
	rdb.RegisterKey(UserLocatedServerBySid)
	rdb.RegisterKey(UserLocatedServerByNickname)
}
